package _17作业._接口t1;

public class JavaTeacher extends Employee{
    public JavaTeacher() {
    }

    public JavaTeacher(String name, String sex, int age) {
        super(name, sex, age);
    }

    @Override
    public void work() {
        System.out.println("姓名为："+getName()+",年龄为："+getAge()+"的"+getSex()+"java讲师在上课");
    }
}
